﻿using System;

namespace HlELock.Core
{
    /// <summary>
    /// 自己设备
    /// </summary>
    public class SfCardService : CardService
    {
        public override string IssueCard(string roomNo, DateTime startDate, DateTime endDate, int buildingNumber = 0, int floorNumber = 0, int subRoomNumber = 0)
        {
            var cardNo = SfHelper.Instance.IssueGuestCard(roomNo, startDate, endDate);
            return cardNo;
        }

        public override string IssueCheckOutCard()
        {
            return SfHelper.Instance.CancelGuestCard();
        }

        public override CardDetailInfo ReadCard()
        {
            return SfHelper.Instance.ReadCardInfo();
        }
    }
}
